<?php
if ( ! defined('ROOT')) exit('No direct script access allowed');

/**
 * 模型基类
 * @author gzute
 * @link http://www.gzute.com
 */

class Model extends Db_factory
{
	//数据库连接
	public static $db;
	public static $table;
	
	public function __construct()
	{
		self::$db = self::link_db();
	}
	
	public function link_db($params = '')
	{
		return self::get_db_object($params);
	}
	
	public function db()
	{
		return self::$db;
	}
}

//end of this file